package top.jybill.service;

import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;
import top.jybill.domain.MyPageInfo;
import top.jybill.domain.Permission;

import java.util.List;


public interface IPermissionService {

  List<Permission> findPermissionsByrid(String id);


  List<Permission> findAllPermissions();

  MyPageInfo findPermissionsByPage(MyPageInfo page);

  void addPermission(Permission permission);

  void delPermission(String pid);

  Permission findPermissionByPid(String pid);

  void updatePermission(Permission permission);
}
